These are CDEFs that you may use in your own programs. Contained in this packaged is:
1. ICN# Pushbutton CDEF: This CDEF allows your program to use 32x32 ICN#'s or 16x16 ics#'s to define the appearance of a button in it's up (engaged & disengaged) and down mode. This cdef can also be used for normal buttons if your program keep's it's control value at zero. Documentation is also included.
2. Date & Time CDEF: This CDEF gives your program a "point and click" method to allow users to enter time and date records into your programs. They are fashioned after the system's time and date control panel, but (currently) do not allow keyboard entry. Documentation is also included.
3. Number Picker CDEF: This is very simple CDEF which can be used for setting numbers. The user can use an up/down arrow to adjust the control value within the control's bounds.
4. Square Pushbutton CDEF: This is a very simple CDEF. It is square and gray, thus being very reminiscent of buttoms you seen elsewhere. You may customize these buttons by setting the button's test's font, face, and size. See documentation on how.
5. CDEF Sampler: A simple program which demonstrates these CDEF's capabilities. It's source code is also included for demonstration purposes on how to use these CDEF's. Please realize this program was quickly thrown together and may not be pretty to look at.
These CDEFs all require system 7.0 or later. They have been tested on SE/30s, ][si's, ][ci's and a Centris 650
SHARWARE INFO:
Use of these CDEF's is free as long as the program they are used in are themselve's free. If the program they are used in is not free, then a shareware fee is required. Ammounts are specified in the documentation for each CDEF.
MICHAEL KAMPRATH PROVIDES NO WARRANTY, WRITTEN OR IMPLIED, WITH THE CDEF'S IN THIS PACKAGE. MICHAEL KAMPRATH ACCEPTS NO LIABILITY FOR DAMAGES RECEIVED BY THEIR USE. USE AT YOU OWN RISK.
CONTACTING ME:
Though I provide no warranty, I would like to hear any comments or bug reports you may have so I can keep these CDEFs up to date and usable by the Macintosh community. You may contact me by e-mail at:
kamprath@aol.com
You may also contact me via snail mail (especially for sending those shareware payments) at:
v1.0.1, 20 Oct 93: Oops, I released the wrong one! The date & time CDEF hjad a slight bug in it that I had fixed. If you had a custom date string set up via the Date & Time Control Panel, then the CDEF wouldn't work properly. Currently, the CDEF works properly with the month-date-year and the day-month-year format. If it is anything else, the CDEF will default to the month-date-year format.
v1.0.2, 1 Nov 93: The sampler program now checks to see if the machine can support the call NewCWindow(), if it can't, NewWindow() is called instead (and you get B&W icons). Also added a new (hopefuly longer lasting) e-mail address.
v1.1, 3 Nov 93: The Date and Time CDEF now allows any custom date & time format set up via the Date & Time control panel.
v1.1.1, 6 Jan 94: I modified the date and time CDEF so that when the control is in hilite state 255 (unhilited), the text is drawn as gray. On 2-bit monitors, this has no real effect (that is, it is still drawn as black). I also fixed some sloppy memory management that might be causing some problems.
v1.1.2, 13 May 994: Updated address and streamlined the code in the date & time CDEF.
v1.2, 20 May 1994: Added the number picker CDEF.
v1.3, 12 June 1994: Added the square button CDEF. Also fixed the sampler program code so you can see the hiliting behavior of the controls.